package com.bizihang.common.security.core.code.image;


import com.bizihang.common.security.core.code.ValidateCode;
import lombok.Getter;
import lombok.Setter;

import java.awt.image.BufferedImage;
import java.time.LocalDateTime;


/**
 * 图片验证码
 *
 * @author 毕子航 951755883@qq.com
 * @date 2018/10/19
 */
@Getter
@Setter
public class ImageCode extends ValidateCode {

	private BufferedImage image;

	ImageCode(BufferedImage image, String code, int expireIn) {
		super(code, expireIn);
		this.image = image;
	}

	public ImageCode(BufferedImage image, String code, LocalDateTime expireTime) {
		super(code, expireTime);
		this.image = image;
	}
}
